.class Lcom/direction/hold/ui/SearchActivity$2;
.super Landroid/os/Handler;


# instance fields
.field private synthetic a:Lcom/direction/hold/ui/SearchActivity;


# direct methods
.method constructor <init>(Lcom/direction/hold/ui/SearchActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/direction/hold/ui/SearchActivity$2;->a:Lcom/direction/hold/ui/SearchActivity;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 5

    const-class v4, Lcom/direction/hold/ui/SearchActivity;

    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity$2;->a:Lcom/direction/hold/ui/SearchActivity;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Lcom/direction/hold/ui/SearchActivity;->a(I)V

    iget v0, p1, Landroid/os/Message;->what:I

    packed-switch v0, :pswitch_data_0

    :cond_0
    :goto_0
    return-void

    :pswitch_0
    const-string v0, "rebind --"

    invoke-static {v0}, Lcn/cheln/support/app/c;->a(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity$2;->a:Lcom/direction/hold/ui/SearchActivity;

    const-class v1, Lcom/direction/hold/ui/SearchActivity;

    invoke-virtual {v4}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/direction/hold/ui/SearchActivity;->c(Ljava/lang/String;)Lcn/cheln/explorer/ui/b;

    move-result-object v0

    const/4 v1, 0x1

    new-array v1, v1, [Ljava/lang/Object;

    const/4 v2, 0x0

    iget-object v3, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    aput-object v3, v1, v2

    invoke-virtual {v0, v1}, Lcn/cheln/explorer/ui/b;->a([Ljava/lang/Object;)V

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity$2;->a:Lcom/direction/hold/ui/SearchActivity;

    const-class v1, Lcom/direction/hold/ui/SearchActivity;

    invoke-virtual {v4}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/direction/hold/ui/SearchActivity;->c(Ljava/lang/String;)Lcn/cheln/explorer/ui/b;

    move-result-object v0

    invoke-virtual {v0}, Lcn/cheln/explorer/ui/b;->c()V

    goto :goto_0

    :pswitch_1
    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity$2;->a:Lcom/direction/hold/ui/SearchActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/SearchActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity$2;->a:Lcom/direction/hold/ui/SearchActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/SearchActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    invoke-virtual {v0}, Lcn/cheln/explorer/cpnt/adapter/FileAdapter;->e()Lcn/cheln/support/adapter/a;

    move-result-object v0

    invoke-virtual {v0}, Lcn/cheln/support/adapter/a;->c()V

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity$2;->a:Lcom/direction/hold/ui/SearchActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/SearchActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    check-cast v0, Lcn/cheln/explorer/cpnt/adapter/CountAdapter;

    iget-object v0, v0, Lcn/cheln/explorer/cpnt/adapter/CountAdapter;->a:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->clear()V

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity$2;->a:Lcom/direction/hold/ui/SearchActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/SearchActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    invoke-virtual {v0}, Lcn/cheln/explorer/cpnt/adapter/FileAdapter;->notifyDataSetChanged()V

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity$2;->a:Lcom/direction/hold/ui/SearchActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/SearchActivity;->c:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/direction/hold/ui/SearchActivity$2;->a:Lcom/direction/hold/ui/SearchActivity;

    invoke-virtual {v1}, Lcom/direction/hold/ui/SearchActivity;->c()Landroid/view/View;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setEmptyView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity$2;->a:Lcom/direction/hold/ui/SearchActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/SearchActivity;->c:Landroid/widget/ListView;

    invoke-virtual {v0}, Landroid/widget/ListView;->invalidate()V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x7
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method
